package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductCategory;
import com.nbsaas.boot.product.api.domain.simple.ProductCategorySimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商品分类-列表对象转换器
*/

public class ProductCategorySimpleConvert implements Converter<ProductCategorySimple, ProductCategory> {




@Override
public ProductCategorySimple convert(ProductCategory source) {
    ProductCategorySimple result = new ProductCategorySimple();

                result.setImage(source.getImage());
                result.setCode(source.getCode());
                result.setVisible(source.getVisible());
                result.setLevel(source.getLevel());
                result.setSeoDescription(source.getSeoDescription());
                result.setIcon(source.getIcon());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setSeoTitle(source.getSeoTitle());
                result.setSeoKeywords(source.getSeoKeywords());
                result.setAddDate(source.getAddDate());
                result.setParentId(source.getParentId());
                result.setEnabled(source.getEnabled());
                result.setPath(source.getPath());
                result.setName(source.getName());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());


    return result;
}

}